package com.jmb.apiplatform.pojo;

import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;


@NoArgsConstructor
@AllArgsConstructor
@Data
public class PermissionDao implements Serializable {
    private Integer id;
    @NotNull(message = "权限代码不能为空")
    @NotEmpty(message = "权限代码不能为空")
    @Size(max = 255, message = "权限代码长度必须小于等于255")
    private String permissionCode;
    @NotNull(message = "权限名称不能为空")
    @NotEmpty(message = "权限名称不能为空")
    @Size(max = 255, message = "权限名称长度必须小于等于255")
    private String permissionName;
    private Integer parentId;
}
